package cn.edu.scau.cmi.houzhicong.abstractFactoryPattern.factory;

import cn.edu.scau.cmi.houzhicong.abstractFactoryPattern.domain.*;
import javafx.scene.image.Image;

public class PingAnFactory extends AbstractFactory{


    @Override
    public Insurance createBodyInjury(String name, String stuNum, Image image) {
        return new PingAnBodyInjury( name,  stuNum,  image) ;
    }

    @Override
    public Insurance createCasualty(String name, String stuNum, Image image) {
        return new PingAnCasualty( name,  stuNum,  image);
    }

    @Override
    public Insurance createCarDamage(String name, String stuNum, Image image) {
        return new PingAnCarDamage( name,  stuNum,  image);
    }

    @Override
    public Insurance createMultipleAccidents(String name, String stuNum, Image image) {
        return new PingAnMultipleAccidents( name,  stuNum,  image);
    }
}
